The public API of ShellAppSystem was changed, now both the desktop
and startup wmclass must be looked up.
https://bugzilla.gnome.org/show_bug.cgi?id=705801
return app;
if (this.trayIcon) {
- app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class);
+ app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class);
+ if (app != null)
+ return app;
+
+ app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class);
if (app != null)
return app;
}